package cn.lsp.sharkmall.mapper;

import cn.lsp.sharkmall.pojo.entity.UserAddress;

import java.util.List;

/**
 * @Description: 用户地址
 * @Author: sweeterjava@163.com
 * @Date: 2023/2/13
 * @Time: 01:20
 */
public interface UserAddressMapper {
    int deleteByPrimaryKey(Long addressId);

    int insert(UserAddress record);

    int insertSelective(UserAddress record);

    UserAddress selectByPrimaryKey(Long addressId);

    UserAddress getMyDefaultAddress(Long userId);

    List<UserAddress> findMyAddressList(Long userId);

    int updateByPrimaryKeySelective(UserAddress record);

    int updateByPrimaryKey(UserAddress record);
}
